package com.letian.record.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.letian.common.annotation.Excel;
import com.letian.common.core.domain.BaseEntity;

/**
 * 记录日记对象 record_note
 * 
 * @author bmz
 * @date 2023-09-28
 */
public class RecordNote extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编码 */
    private Long noteId;

    /** 类型 */
    @Excel(name = "类型")
    private String noteType;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordTime;

    /** 拥有者 */
    @Excel(name = "拥有者")
    private String owner;

    /** 删除标志 */
    private String delFlag;

    /** 更新次数 */
    @Excel(name = "更新次数")
    private Long updateCount;

    public void setNoteId(Long noteId) 
    {
        this.noteId = noteId;
    }

    public Long getNoteId() 
    {
        return noteId;
    }
    public void setNoteType(String noteType) 
    {
        this.noteType = noteType;
    }

    public String getNoteType() 
    {
        return noteType;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setRecordTime(Date recordTime) 
    {
        this.recordTime = recordTime;
    }

    public Date getRecordTime() 
    {
        return recordTime;
    }
    public void setOwner(String owner) 
    {
        this.owner = owner;
    }

    public String getOwner() 
    {
        return owner;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setUpdateCount(Long updateCount) 
    {
        this.updateCount = updateCount;
    }

    public Long getUpdateCount() 
    {
        return updateCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("noteId", getNoteId())
            .append("noteType", getNoteType())
            .append("content", getContent())
            .append("recordTime", getRecordTime())
            .append("owner", getOwner())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("updateCount", getUpdateCount())
            .append("remark", getRemark())
            .toString();
    }
}
